package com.daoeping.service.impl;

import java.util.List;

import com.daoeping.dao.Bsc_addressDAO;
import com.daoeping.data.Bsc_address;
import com.daoeping.service.Bsc_addressService;

public class Bsc_addressServiceImpl implements Bsc_addressService {

	private Bsc_addressDAO bsc_addressDAO;
	
	public Bsc_addressDAO getBsc_addressDAO() {
		return bsc_addressDAO;
	}

	public void setBsc_addressDAO(Bsc_addressDAO bsc_addressDAO) {
		this.bsc_addressDAO = bsc_addressDAO;
	}

	@Override
	public boolean addBsc_address(Bsc_address bsc_address) {
		// TODO Auto-generated method stub
		return this.bsc_addressDAO.insertData(bsc_address);
	}

	@Override
	public boolean editBsc_address(Bsc_address bsc_address) {
		// TODO Auto-generated method stub
		return this.bsc_addressDAO.updateData(bsc_address);
	}

	@Override
	public boolean delBsc_address(Bsc_address bsc_address) {
		// TODO Auto-generated method stub
		return this.bsc_addressDAO.deleteData(bsc_address);
	}

	@Override
	public List<Bsc_address> findBsc_addressList() {
		// TODO Auto-generated method stub
		return this.bsc_addressDAO.findBsc_addressList();
	}

	@Override
	public List<Bsc_address> findBsc_addressByID(int id) {
		// TODO Auto-generated method stub
		return this.bsc_addressDAO.findBsc_addressByID(id);
	}

}
